import request from '@/utils/request'

export function selectTribunalList(data) {
  return request({
    url: '/court/api/selectListByCourtCode',
    method: 'post',
    data
  })
}

export function addTribunal(data) {
  return request({
    url: '/court/api/addTribunal',
    method: 'post',
    data
  })
}

export function editTribunal(data) {
  return request({
    url: '/court/api/editTribunal',
    method: 'put',
    data
  })
}

export function deleteTribunal(data) {
  return request({
    url: '/court/api/deleteTribunal',
    method: 'delete',
    data
  })
}

export function selectTribunalByCourtCode(courtCode) {
  return request({
    url: '/court/api/selectTribunalByCourtCode/' + courtCode,
    method: 'GET'
  })
}

